export default {
    data() {
        return {
            total: 0,
            current: 1,
            pageSize: 50,
            pageSizeOpts: [30, 50, 100],
            pickerOptions: {
                disabledDate (date) {
                    return date && date.valueOf() > Date.now()
                }
            }
        }
    },
    methods: {
        changePage(pageIndex) {
            this.current = pageIndex
            this.initData()
        },
        changePageSize(pageSize) {
            this.pageSize = pageSize
            this.current = 1
            this.initData()
        },
        goBack() {
            this.$router.go(-1)
        }
    }
}
